<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查询</title>
</head>
<body>
<h1>显示所有图书</h1>
    <table border="1">
        <thead>
        <tr>
            <th>编号</th>
            <th>书名</th>
            <th>定价</th>
            <th>售价</th>
            <th>出版社</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {% for item in books %}
        <tr>
            <td>{{item.id}}</td>
            <td>{{item.title}}</td>
            <td>{{item.price}}</td>
            <td>{{item.market_price}}</td>
            <td>{{item.pub}}</td>
            <td>
                <a href="">修改</a>
                <a href="/book/del/?id={{ item.id }}">删除</a>
            </td>
        </tr>
        {% endfor %}
        </tbody>

    </table>
</body>
</html>